<?php
class Control_Announce_editTags {
	function editTags() {
		$tags_id = MooForm::request('tags_id');
		
		$tagsDao = MooDao::get('Tags');
		$tagObj = $tagsDao->load($tags_id);
		
		if (!$tagObj) {
			exit("tagsId不存在");
		}
		
		$tagsId = $tagObj->t_id;
		$tagsName = $tagObj->t_tag;
		
		MooView::set('tagsId',$tagsId);
		MooView::set('tagsName',$tagsName);
		
		MooView::render('announceChangeTags');
	}
}